# -*- coding: UTF-8 -*-

import random

class Etoile:
    def __init__(self ,id ,x , y, z):
        self.nom
        #self.color à vérifier
        self.idEtoile = id
        self.etoileX = x
        self.etoileY = y
        self.etoileZ = z
        self.listPlanete=[]
        
          
    def genererSysteme(self):
        if  random.randint(0,1)==0:
            nbr=random.randint(0,6)
            if nbr != 0:
                for i in nbr:
                    self.listPlanete[i] = self.genererPlanete(i, self.idEtoile)
        
                
    def genererPlanete(self, idPlanete, idEtoile):
        idPlanete = "p" + idPlanete 
        sysSolaire = idEtoile
        size = random.randint(200, 300)
        type = random.randint(1, 3)
        estHabitee = False
        valide=True
        while(valide):
            posX = random.randint(-3,3)
            posY = random.randint(-3,3)
            posY = random.randint(-3,3)
            if posX==0 or posX+etoileX > 999 
                  
        
        
        
        
            
            
        
if __name__ == '__main__':
    etoile=Etoile()
    print("Fin class etoile")
            
       

    